const mongoose = require('mongoose');//引入mongoose
const collectionsSchema = new mongoose.Schema({
    // 类似
    // name: String,
     questions_id: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'questionsModel'
    },
    user_id:{
        type: mongoose.SchemaTypes.ObjectId,
        ref:'usersModel'
    }
});

const collectionsModel = mongoose.model("collectionsModel", collectionsSchema, "Collections");
module.exports = {collectionsModel}